package com.qf.service.Impl;/*
    Dell
    2021/10/2
    12:44
*/

import com.qf.dao.Impl.OrganDaoImpl;
import com.qf.dao.OrganDao;
import com.qf.entiy.Health;
import com.qf.entiy.Organ;
import com.qf.service.OrganService;
import com.qf.util.DruidUtil;

import java.util.List;

public class OrganServiceImpl implements OrganService {
    private OrganDao organDao  = new OrganDaoImpl();
    @Override
    public List<Organ> showAllOrgan() {
        List<Organ> organList = null;
        organList = organDao.showAllOrgan();
        DruidUtil.close();
        return organList;
    }

    @Override
    public Health selectId(Integer id) {
        Health health = null;
        health = organDao.select(id);
        DruidUtil.close();
        return health;
    }
}
